<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="full.js"></script>
    <script>
        const converter = OpenCC.Converter({ from: 'hk', to: 'cn' });


        fetch('../../game/save/magics.json')
            .then(response => {
                return response.json();
            })
            .then(data => {
                for (const item of data) {
                    console.log(item.data.Name)
                    item.data.Name = converter(item.data.Name)
                }

                console.log(data)

            })



    </script>
</body>

</html>